package com.zzs.elm.service;

import java.util.List;

import com.zzs.elm.dao.CartDao;
import com.zzs.elm.po.Cart;

public class CartService {

	private static CartDao cartDao = new CartDao();

	public int saveCart(Cart cart) throws Exception {
		return cartDao.saveCart(cart, false);
	}

	public int updateCart(Cart cart) throws Exception {
		return cartDao.updateCart(cart, false);
	}

	public int removeCart(Cart cart) throws Exception {
		return cartDao.removeCart(cart, false);
	}

	public List<Cart> listCart(Cart cart) throws Exception {
		return cartDao.listCart(cart, false);
	}
}